import Vue from 'vue'
import Router from 'vue-router'
import selectShop from './selectShop'
import selectProtector from './selectProtector'
import layoutPic from './layoutPic'
import setArea from './setArea'
import finish from './finish'
import configNVR from './configNVR'
import video from './video'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      redirect: { name: 'selectShop'},
    },
    {
      path: '/selectShop',
      name: 'selectShop',
      component: selectShop,
    },
    {
      path: '/selectProtector',
      name: 'selectProtector',
      component: selectProtector
    },
    {
        path: '/layoutPic',
        name: 'layoutPic',
        component: layoutPic
    },
    {
      path: '/setArea',
      name: 'setArea',
      component: setArea
    },
    {
      path: '/configNVR',
      name: 'configNVR',
      component: configNVR
    },
    {
      path: '/video',
      name: 'video',
      component: video
    },
    {
      path: '/finish',
      name: 'finish',
      component: finish
    },
  ]
})
